package com.imooc;

import com.imooc.pojo.Stu;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration //配置类
public class SpringbootConfig {

    @Bean
    public Stu stu(){
        return new Stu("jack",18);
    }
}
